<template>
  <div class="colorOfContent01">
    <colorAll v-if="id === 0"></colorAll>
  </div>
</template>

<script>
  import './theColor.scss';
  import colorAll from './colorAll/index.vue';
  export default {
    data() {
      return {
        id: '', //彩种id
        resultsId: 0, //开奖结果id
        holdBack: false, //阻止两次请求
      }
    },
    created() {
      //this.initData();
    },
    activated() {

    },
    mounted() {
      this.init();
    },
    methods: {
      init(){
        this.id = parseInt(this.$route.query.id);
      },
      initData() {

      }
    },
    components: {
      colorAll
    },
    watch: {
      '$route.query.id'() {
        this.init();
      }
    }
  }
</script>
